/*
 * masterGetCycleHost.h
 *
 *  Created on: 25/nov/2009
 *      Author: Aleph3
 */

#ifndef MASTERGETCYCLEHOST_H_
#define MASTERGETCYCLEHOST_H_
#include "masterCycle.h"
//Segnali
#define ON_NOTIFY_MASTER_GET_PACKET_P 8
#define ON_NOTIFY_MASTER_GET_PACKET 9
#define ON_NOTIFY_MASTER_GET_FAIL 10
//Notificatori
void masterGetCycleHostNotifyMasterPacketP(void* target);
void masterGetCycleHostNotifyMasterPacketData(void* target);
void masterGetCycleHostNotifyMasterFail(void* target);
//Stati
StateOutcome masterGetCycleHostInitTransactionState (void* me,const Event* e);
StateOutcome masterGetCycleHostPacketStartReceivingState (void* me,const Event* e);
StateOutcome masterGetCycleHostPacketReceivingState (void* me,const Event* e);
StateOutcome masterGetCycleHostEndTransactionState (void* me,const Event* e);
StateOutcome masterGetCycleHostFinishFailState (void* me,const Event* e);
//azioni
void fromPacketGetReceivingStateToPacketGetReceivingState(void* me);
//Inizializzatore Trasmissione
void masterGetCycleHostInit(void* me,void* canPort, uint32_t msgId, uint32_t msgAnswer, Notifier onOk);
//struttura supporto configurazione transazione
typedef struct{
	void* contentBuffer;

} getInitData;
#endif /* MASTERGETCYCLEHOST_H_ */
